Control Register(The control registers (Cr0, CR1, CR2, and so on) are used to control and determine the operating mode of the processor and the features of the currently executed tasks .)As shown in the preceding table, 80386 has four 32-bit control registers named Cr0, CR1, CR2, and C3. However, CR1 is retained for future development of processors. CR1 cannot be used in 80386; otherwise, invalid command op
Linux Kernel full analysis-Based on 0.12 kernel chapter 4th 80 x86 protection mode and Programming
Control Register (Cr0 ~ (3-3) used to control and determine the operating mode of the processor and the features of the current task, as shown in Figure 4-3. Cr0 contains the system control mark that controls the operating mode and status of the processor; CR1 is not needed; Cr2 contains the linear address that leads to page errors; Cr 3 contains the ba
If you have used Canon's SLR camera, will not be unfamiliar to the Cr2 file, as a Canon camera raw files of an archive format, Cr2 in many photography enthusiasts have a very important position.
What file is Cr2?
The CR2 format is an archive format for Canon camera RAW files. The raw file contains all the photo inf
Download and install the program:
1, Baidu Search digital Photo Professional, and then select the Trust download site to download;
2, because the installation process is different from the ordinary installation procedures, so this
[-]
1. Control Register
Protection Control bit
Coprocessor control bit
Cr2 AND Cr 3
2. system address register
Global Descriptor Table register GDTR
Local Descriptor Table register ldtr
Interrupt Descriptor Table register idtr
Task status segment register tr
80386 The following table lists the control registers and system address registers. They are used to control the way of work, control the implementation of the
The 80386 control registers and the system address registers are shown in the following table. They are used to control the working mode, control the subsection management mechanism and implement the paging management mechanism.
ControlRegister
CRx
BIT31
Bit30-bit12
Bit11-bit5
BIT4
BIT3
BIT2
BIT1
BIT0
CR0
Pg
0000000000000000
Et
Ts
Em
Mp
PE
CR1
Keep
The Bootsect and setup assembly uses Intel's assembler style, while in the head, it is now in the 32-bit protection mode, the assembly of the AT-T assembly language, the compiler will of course become the corresponding compiler and connector.Concept:① a detailed description of the interrupt descriptor, see: http://blog.csdn.net/fwqcuc/article/details/5855460② about the control register (CR0,CR1,CR2,CR3): http://blog.csdn.net/sunnybeike/article/details
Class Hotkey.cs
Using System;
Namespace Durius.generics
{
public delegate void Hotkeyeventhandler (int hotkeyid);
System Wide Hotkey Wrapper.
///
Robert Jeppesen
Send Bugs to Robert@durius.com
public class Hotkey:System.Windows.Forms.IMessageFilter
{
System.Collections.Hashtable keyids = new System.Collections.Hashtable ();
IntPtr hWnd;
Occurs when a hotkey has been pressed.
public event Hotkeyeventhandler Onhotkey;
public enum Keyflags
{
Mod_alt = 0x
memoryCursorid.close ();//3. Add permissions to allow read Contentprivider} });//Through the above analysis, we want to insert a contact, we need the following actions://1, first go to the Raw_contacts table to add the ID;///2, then use the ID to go to the data table to add a variety of information. Mupdatacontacts.setonclicklistener (NewView.onclicklistener () {@Override Public void OnClick(View view) {Contentresolver Cr2 = Getcon
conversion Course TEMP = (course) coursetoselect.get (0);//Remove the specified element and force type conversion before assignment System.out.println ("successfully added
Course: "+ temp.id +". "+ Temp.name);
The second Add method course Cr2 = new Course ("2", "C language");//Create Course Object Coursetoselect.add (0, CR2);//Use the Add method to add the object containing the course information
code does not give this very well. However, we have initialized the uboot
The serial port can be used even if there is no initialization.
There are only two useful sentences here.Clk_enable (device-> clk); // initialize the bus clockPort-> membase = ioremap (port-> mapbase, SZ_4K); // serial register memory ingHowever, it is strange that no serial register Initialization is performed after the register ing is completed,The register initialization code is written in the data sending function. Wh
instantiatedStoring alternative courses with the list containerListtest.javapublic class listtest{Public list coursestoselect;//introduces the properties of the list package//list type under Java.utilPublic Listtest () {//constructor method used to initialize Coursestoselect propertyThis.coursestoselect=new ArrayList ();//introduction of ArrayList Package}Add a course to a container, call the method in listpublic void Testadd () {Course cr1=new Course ("1", "Data Structure");//constructor calle
Configuring JBoss AS7 and deploying applications under Linux 1. Test platform and Software CentOS 5.4 jdk-7u5-linux-i586.rpm Jboss-as-7.1.1.final.zip Jboss-as-quickstarts-7.1.1.cr2-dist.zip Apache-maven-3.0.4-bin.tar.gz 2. Install related software A. Installing the JDK [Email protected] ~]# chmod +x jdk-7u5-linux-i586.rpm [Email protected] ~]# RPM-IVH jdk-7u5-linux-i586.rpm [Email protected] ~]# java-versionJava Version "1.7.0_05"Java (TM) SE Runtime
capacity address cr2. If an exception occurs on the error code stack, the system starts from alarm 0 and the address corresponds to an invalid OpCode exception. Then the pop-up error code closes the stack and jumps to the "invalid OpCode exception handler. Otherwise, the normal page error handling program will continue.OrThe solution consists of two parts. First, the interrupt description table (IDT) is aligned (for example, any invalid OpCode except
, out_of_memory, and bad_area_nosemaphore perform different processing operations on different page missing exceptions.
Receiving parameters:
fastcall void do_page_fault(struct pt_regs *regs, unsigned long error_code)Address regs of the pt_regs structure, which contains the value of the microprocessor register when an exception occurs.
Three-digit error_code:
==>> Error_code:
* If 0th bits are cleared, an error occurred while accessing a non-existent page; If 0th bits are set, the access permiss
memory or the access type is incorrect, a page exception occurs. The processor installs the virtual address that causes the page exception to the register CR2, and provides an error code to indicate the type of memory access that causes the page exception, then, the Linux missing page exception handling function is called for processing.
In Linux, the function for handling page missing exceptions is as follows:
Asmlinkage void do_page_fault
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.